addAccessibilityAction

Adds an accessibility action that can be performed on a node associated with a view. A view can only have 32 actions created with this API.

Return

The id associated with the action, or NO_ID if the action could not be created. This id can be used to remove the action.

Compatibility:

  • API <21: No-op

Parameters

view

The view.

label

The user facing description of the action. If an action with the same label already exists, it will be replaced.

command

The command performed when the service requests the action.